Record an Action Macro
 
 
 

The Action Recorder can record most of the commands that can be used from the command line and from the user interface elements that you are already familiar with.